x86/hvm: fold opt_hap_{2mb,1gb} into hap_capabilities
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 23 Sep 2015 09:16:51 +0000 (11:16 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 23 Sep 2015 09:16:51 +0000 (11:16 +0200)
commit9cc1346f1c578050d274133dc777000247adfc11
tree3f3e0036e0bc6e31331364397b5a05e70c40e11f
parent4db520bcf75a101ce7e06cdca52350c100a8e67e
x86/hvm: fold opt_hap_{2mb,1gb} into hap_capabilities

This allows all runtime users to simply check hap_has_{2mb,1gb} rather than
having to check opt_hap_{2mb,1gb} as well.

As a result, opt_hap_{2mb,1gb} can move into __initdata.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/mm/p2m.c